package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FTopInstExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FTopInstExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTradeDateIsNull() {
            addCriterion("trade_date is null");
            return (Criteria) this;
        }

        public Criteria andTradeDateIsNotNull() {
            addCriterion("trade_date is not null");
            return (Criteria) this;
        }

        public Criteria andTradeDateEqualTo(String value) {
            addCriterion("trade_date =", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotEqualTo(String value) {
            addCriterion("trade_date <>", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateGreaterThan(String value) {
            addCriterion("trade_date >", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateGreaterThanOrEqualTo(String value) {
            addCriterion("trade_date >=", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLessThan(String value) {
            addCriterion("trade_date <", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLessThanOrEqualTo(String value) {
            addCriterion("trade_date <=", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateLike(String value) {
            addCriterion("trade_date like", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotLike(String value) {
            addCriterion("trade_date not like", value, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateIn(List<String> values) {
            addCriterion("trade_date in", values, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotIn(List<String> values) {
            addCriterion("trade_date not in", values, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateBetween(String value1, String value2) {
            addCriterion("trade_date between", value1, value2, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTradeDateNotBetween(String value1, String value2) {
            addCriterion("trade_date not between", value1, value2, "tradeDate");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNull() {
            addCriterion("ts_code is null");
            return (Criteria) this;
        }

        public Criteria andTsCodeIsNotNull() {
            addCriterion("ts_code is not null");
            return (Criteria) this;
        }

        public Criteria andTsCodeEqualTo(String value) {
            addCriterion("ts_code =", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotEqualTo(String value) {
            addCriterion("ts_code <>", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThan(String value) {
            addCriterion("ts_code >", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeGreaterThanOrEqualTo(String value) {
            addCriterion("ts_code >=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThan(String value) {
            addCriterion("ts_code <", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLessThanOrEqualTo(String value) {
            addCriterion("ts_code <=", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeLike(String value) {
            addCriterion("ts_code like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotLike(String value) {
            addCriterion("ts_code not like", value, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeIn(List<String> values) {
            addCriterion("ts_code in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotIn(List<String> values) {
            addCriterion("ts_code not in", values, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeBetween(String value1, String value2) {
            addCriterion("ts_code between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andTsCodeNotBetween(String value1, String value2) {
            addCriterion("ts_code not between", value1, value2, "tsCode");
            return (Criteria) this;
        }

        public Criteria andExalterIsNull() {
            addCriterion("exalter is null");
            return (Criteria) this;
        }

        public Criteria andExalterIsNotNull() {
            addCriterion("exalter is not null");
            return (Criteria) this;
        }

        public Criteria andExalterEqualTo(String value) {
            addCriterion("exalter =", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterNotEqualTo(String value) {
            addCriterion("exalter <>", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterGreaterThan(String value) {
            addCriterion("exalter >", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterGreaterThanOrEqualTo(String value) {
            addCriterion("exalter >=", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterLessThan(String value) {
            addCriterion("exalter <", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterLessThanOrEqualTo(String value) {
            addCriterion("exalter <=", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterLike(String value) {
            addCriterion("exalter like", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterNotLike(String value) {
            addCriterion("exalter not like", value, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterIn(List<String> values) {
            addCriterion("exalter in", values, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterNotIn(List<String> values) {
            addCriterion("exalter not in", values, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterBetween(String value1, String value2) {
            addCriterion("exalter between", value1, value2, "exalter");
            return (Criteria) this;
        }

        public Criteria andExalterNotBetween(String value1, String value2) {
            addCriterion("exalter not between", value1, value2, "exalter");
            return (Criteria) this;
        }

        public Criteria andBuyIsNull() {
            addCriterion("buy is null");
            return (Criteria) this;
        }

        public Criteria andBuyIsNotNull() {
            addCriterion("buy is not null");
            return (Criteria) this;
        }

        public Criteria andBuyEqualTo(Float value) {
            addCriterion("buy =", value, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyNotEqualTo(Float value) {
            addCriterion("buy <>", value, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyGreaterThan(Float value) {
            addCriterion("buy >", value, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyGreaterThanOrEqualTo(Float value) {
            addCriterion("buy >=", value, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyLessThan(Float value) {
            addCriterion("buy <", value, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyLessThanOrEqualTo(Float value) {
            addCriterion("buy <=", value, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyIn(List<Float> values) {
            addCriterion("buy in", values, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyNotIn(List<Float> values) {
            addCriterion("buy not in", values, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyBetween(Float value1, Float value2) {
            addCriterion("buy between", value1, value2, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyNotBetween(Float value1, Float value2) {
            addCriterion("buy not between", value1, value2, "buy");
            return (Criteria) this;
        }

        public Criteria andBuyRateIsNull() {
            addCriterion("buy_rate is null");
            return (Criteria) this;
        }

        public Criteria andBuyRateIsNotNull() {
            addCriterion("buy_rate is not null");
            return (Criteria) this;
        }

        public Criteria andBuyRateEqualTo(Float value) {
            addCriterion("buy_rate =", value, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateNotEqualTo(Float value) {
            addCriterion("buy_rate <>", value, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateGreaterThan(Float value) {
            addCriterion("buy_rate >", value, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateGreaterThanOrEqualTo(Float value) {
            addCriterion("buy_rate >=", value, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateLessThan(Float value) {
            addCriterion("buy_rate <", value, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateLessThanOrEqualTo(Float value) {
            addCriterion("buy_rate <=", value, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateIn(List<Float> values) {
            addCriterion("buy_rate in", values, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateNotIn(List<Float> values) {
            addCriterion("buy_rate not in", values, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateBetween(Float value1, Float value2) {
            addCriterion("buy_rate between", value1, value2, "buyRate");
            return (Criteria) this;
        }

        public Criteria andBuyRateNotBetween(Float value1, Float value2) {
            addCriterion("buy_rate not between", value1, value2, "buyRate");
            return (Criteria) this;
        }

        public Criteria andSellIsNull() {
            addCriterion("sell is null");
            return (Criteria) this;
        }

        public Criteria andSellIsNotNull() {
            addCriterion("sell is not null");
            return (Criteria) this;
        }

        public Criteria andSellEqualTo(Float value) {
            addCriterion("sell =", value, "sell");
            return (Criteria) this;
        }

        public Criteria andSellNotEqualTo(Float value) {
            addCriterion("sell <>", value, "sell");
            return (Criteria) this;
        }

        public Criteria andSellGreaterThan(Float value) {
            addCriterion("sell >", value, "sell");
            return (Criteria) this;
        }

        public Criteria andSellGreaterThanOrEqualTo(Float value) {
            addCriterion("sell >=", value, "sell");
            return (Criteria) this;
        }

        public Criteria andSellLessThan(Float value) {
            addCriterion("sell <", value, "sell");
            return (Criteria) this;
        }

        public Criteria andSellLessThanOrEqualTo(Float value) {
            addCriterion("sell <=", value, "sell");
            return (Criteria) this;
        }

        public Criteria andSellIn(List<Float> values) {
            addCriterion("sell in", values, "sell");
            return (Criteria) this;
        }

        public Criteria andSellNotIn(List<Float> values) {
            addCriterion("sell not in", values, "sell");
            return (Criteria) this;
        }

        public Criteria andSellBetween(Float value1, Float value2) {
            addCriterion("sell between", value1, value2, "sell");
            return (Criteria) this;
        }

        public Criteria andSellNotBetween(Float value1, Float value2) {
            addCriterion("sell not between", value1, value2, "sell");
            return (Criteria) this;
        }

        public Criteria andSellRateIsNull() {
            addCriterion("sell_rate is null");
            return (Criteria) this;
        }

        public Criteria andSellRateIsNotNull() {
            addCriterion("sell_rate is not null");
            return (Criteria) this;
        }

        public Criteria andSellRateEqualTo(Float value) {
            addCriterion("sell_rate =", value, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateNotEqualTo(Float value) {
            addCriterion("sell_rate <>", value, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateGreaterThan(Float value) {
            addCriterion("sell_rate >", value, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateGreaterThanOrEqualTo(Float value) {
            addCriterion("sell_rate >=", value, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateLessThan(Float value) {
            addCriterion("sell_rate <", value, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateLessThanOrEqualTo(Float value) {
            addCriterion("sell_rate <=", value, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateIn(List<Float> values) {
            addCriterion("sell_rate in", values, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateNotIn(List<Float> values) {
            addCriterion("sell_rate not in", values, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateBetween(Float value1, Float value2) {
            addCriterion("sell_rate between", value1, value2, "sellRate");
            return (Criteria) this;
        }

        public Criteria andSellRateNotBetween(Float value1, Float value2) {
            addCriterion("sell_rate not between", value1, value2, "sellRate");
            return (Criteria) this;
        }

        public Criteria andNetBuyIsNull() {
            addCriterion("net_buy is null");
            return (Criteria) this;
        }

        public Criteria andNetBuyIsNotNull() {
            addCriterion("net_buy is not null");
            return (Criteria) this;
        }

        public Criteria andNetBuyEqualTo(Float value) {
            addCriterion("net_buy =", value, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyNotEqualTo(Float value) {
            addCriterion("net_buy <>", value, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyGreaterThan(Float value) {
            addCriterion("net_buy >", value, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyGreaterThanOrEqualTo(Float value) {
            addCriterion("net_buy >=", value, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyLessThan(Float value) {
            addCriterion("net_buy <", value, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyLessThanOrEqualTo(Float value) {
            addCriterion("net_buy <=", value, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyIn(List<Float> values) {
            addCriterion("net_buy in", values, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyNotIn(List<Float> values) {
            addCriterion("net_buy not in", values, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyBetween(Float value1, Float value2) {
            addCriterion("net_buy between", value1, value2, "netBuy");
            return (Criteria) this;
        }

        public Criteria andNetBuyNotBetween(Float value1, Float value2) {
            addCriterion("net_buy not between", value1, value2, "netBuy");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}